<script type="text/javascript" >
    stFacebookToolbox.sortColumn();
    stFacebookToolbox.shortAction();
</script>

<div class="w100p bgl">
    <div class="w100p bgr">
        <div class="inner_container">
            <br>
                            <a class="button add-new-h2" onclick="stFacebookToolboxcustom.update_site_map(<?php echo $user_id;?>);" style="cursor: pointer;">
                       <b>Read Site Maps</b>
                    </a>
            <input type="hidden" id="picture" value="<?php echo $plugin_url;?>images/mini-loading.gif" />
            <div id="facebook_site_map" align="center"></div>
            <p></p>
            <table class="widefat" cellspacing="0">
                <thead>
                    <tr>
                        <?php print_column_headers('stFacebookToolbox_stFacebookToolbox'); ?>
                    </tr>
                </thead>

                <tbody>
                <?php
                if (count($results) > 0) {
                    $tr_class = "";
                    $upload_data = wp_upload_dir();
                    foreach ($results as $result) {
                        if( empty($tr_class) || $tr_class == "class='bg_gray2'"){
                            $tr_class = "class='bg_gray1'";
                        }else{
                            $tr_class = "class='bg_gray2'";
                        }
                        echo "<tr id='$result->id' $tr_class >"
                        . "<td>" . $result->id
                        . "</td>"
                        . "<td>" . $result->site_name
                        . "<div class=\"row-actions short_action\">"
                        . "<span class='edit' action='edit_site_map' short_action='' id='$result->id'>Edit | </span>"
                        . "<span class='trash' short_action='delete' id='$result->id' confirm='Are you sure you want to delete this map?'>Trash </span>"
                        . "</div>"
                        . "</td>"
                        . "<td>" . $result->site_url . "</td>"
                        . "<td>" . $result->number . "</td>"
                        . "</tr>"
                        ;
                    }
                }
                ?>
                </tbody>
            </table>
            <div class="page_d">
                <?php echo $pagination?>
                <div class="cl"></div>
            </div>

        </div>
        <style>
    #stcontainer th.column-id{
        width:70px;
    }
    </style>
    </div>
</div>